package com.itlong.cloud.operate.service;

import com.itlong.cloud.POJO.DTO.operate.*;
import com.itlong.cloud.POJO.VO.operate.OperateDeveloperAuthDeviceAuthVO;
import com.itlong.cloud.POJO.VO.operate.OperateDeveloperAuthVO;
import com.itlong.cloud.POJO.VO.operate.OperateRobotDeveloperDeviceAuthVO;
import com.itlong.cloud.utils.page.Page;

/**
 * <desc>
 *      运营-开发者授权管理服务层接口
 * </desc>
 *
 * @createDate 2018/12/18
 */
public interface IOperateDeveloperAuthService {

    /**
     * <desc>
     *      获取开发者授权信息分页列表
     * </desc>
     *
     * @param dto 查询参数DTO
     * @return
     * @author Qiang.S
     * @createDate 2018/12/19
     */
    Page<OperateDeveloperAuthVO> getDeveloperAuthByPage(OperateLoggerDeveloperAuthGetPageDTO dto) throws Exception;

    /**
     * <desc>
     *      安全设置
     * </desc>
     *
     * @param operateDeveloperAuthSafeSettingsDTO 安全设置DTO
     * @return 受影响的行数
     * @author wangzhi
     * @createDate 2018/12/18
     */
    Integer safeSettings(OperateDeveloperAuthSafeSettingsDTO operateDeveloperAuthSafeSettingsDTO) throws Exception;

    /**
     * <desc>
     *      有效期延期设置
     * </desc>
     *
     * @param operateDeveloperAuthMoreValidityDTO 有效期延期设置DTO
     * @return 受影响行数
     * @author wangzhi
     * @createDate 2018/12/18
     */
    Integer moreValidity(OperateDeveloperAuthMoreValidityDTO operateDeveloperAuthMoreValidityDTO) throws Exception;

    /**
     * <desc>
     *      获取设备授权列表
     * </desc>
     *
     * @param operateDeveloperAuthDeviceAuthListDTO 设备授权列表DTO
     * @return 设备授权列表VO
     * @author wangzhi
     * @createDate 2018/12/18
     */
    OperateDeveloperAuthDeviceAuthVO deviceAuthList(OperateDeveloperAuthDeviceAuthListDTO operateDeveloperAuthDeviceAuthListDTO) throws Exception;

    /**
     * <desc>
     *      机器人开发者获取设备授权列表
     * </desc>
     *
     * @param operateDeveloperAuthDeviceAuthListDTO 设备授权列表DTO
     * @return 设备授权列表VO
     * @author Qiang.S
     * @createDate 2020/03/20
     */
    OperateRobotDeveloperDeviceAuthVO robotDeviceAuthList(OperateDeveloperAuthDeviceAuthListDTO operateDeveloperAuthDeviceAuthListDTO) throws Exception;

    /**
     * <desc>
     *      设备授权
     * </desc>
     *
     * @param operateDeveloperAuthDeviceAuthDTO 设备授权DTO
     * @return 受影响行数
     * @author wangzhi
     * @createDate 2018/12/18
     */
    Integer deviceAuth(OperateDeveloperAuthDeviceAuthDTO operateDeveloperAuthDeviceAuthDTO) throws Exception;

    /**
     * <desc>
     *      接口授权
     * </desc>
     *
     * @param operateDeveloperRobotAuthDeviceAuthDTO 设备授权DTO
     * @return 受影响行数
     * @author Qiang.S
     * @createDate 2020/03/20
     */
    Integer robotDeviceAuth(OperateDeveloperRobotAuthDeviceAuthDTO operateDeveloperRobotAuthDeviceAuthDTO) throws Exception;
}
